package com.deep.seata.client;


import com.deep.seata.common.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "alibaba-seata")
public interface StorageClient {

    /**
     * adfsd
     *
     * @param productId
     * @param count
     * @return
     * @description adsfasdf
     */
    @PostMapping(value = "/storage/decrease")
    CommonResult decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}